<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="js/hello.js"></script>
    <title>hello javascript</title>
</head>
<body>
    <script>
        document.write("<h1>This is a writed</h1>");

    </script>
    <br/>
    <input type="text" id="content" placeholder="请输入想要设置的全局变量">
    <input type="button" name="set" onclick="setParamToWinow()" value="设置内容为全局变量" >
    <input type="button" name="replace" onclick="getParamToWinow()" value="用全局变量替换下面的内容">
    <span id="forReplace">替换区</span>
    <br/>
</body>
</html>